Add CI config
authorFelix Krull <f_krull@gmx.de>
Tue, 16 Oct 2018 16:20:58 +0000 (18:20 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:53 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml [new file with mode: 0644]

diff --git a/rust-bindings/rust/.gitlab-ci.yml b/rust-bindings/rust/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..31fb205
--- /dev/null
@@ -0,0 +1,45 @@
+stages:
+- build
+- package
+
+libostree-sys_rust-stable:
+  stage: build
+  image: rust:latest
+  script:
+  - cargo build --verbose --package libostree-sys
+  - cargo test --verbose --package libostree-sys
+
+libostree_rust-stable:
+  stage: build
+  image: rust:latest
+  script:
+  - cargo build --verbose --package libostree
+  - cargo test --verbose --package libostree
+
+libostree-sys_rust-nightly:
+  stage: build
+  image: rustlang/rust:nightly
+  script:
+  - cargo build --verbose --package libostree-sys
+  - cargo test --verbose --package libostree-sys
+  allow_failure: true
+
+libostree_rust-nightly:
+  stage: build
+  image: rustlang/rust:nightly
+  script:
+  - cargo build --verbose --package libostree
+  - cargo test --verbose --package libostree
+  allow_failure: true
+
+libostree-sys_package:
+  stage: package
+  image: rust:latest
+  script:
+    - cargo package --manifest-path libostree-sys/Cargo.toml
+
+libostree_package:
+  stage: package
+  image: rust:latest
+  script:
+  - cargo package --manifest-path libostree/Cargo.toml